home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / H-K / Icon.sample.cpt / sieve.icn < prev   
MacBinary  |  1988-04-07  |  1.1 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert RIP Icon (image/ripIcon) ext Supported
65% dexvert Atari ICE* Image (image/iceStar) ext Supported
64% dexvert DEGAS Elite Icon (image/degasEliteIcon) ext Supported
63% dexvert FM-Towns Icons (image/fmTownsIcons) ext Supported
62% dexvert HP Palmtop Icon (image/hpPalmtopIcon) ext Supported
60% dexvert Psion Series 3 (image/psionPIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Micrografx Icon (image/micrografxIcon) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Apr 7 05:49:08 1988, modified Thu Apr 7 05:49:08 1988, creator 'MPS ', type ASCII, 544 bytes "sieve.icn" , at 0x2a0 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 73 69 65 76 65 2e | 69 63 6e 00 00 00 00 00 |..sieve.|icn.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 02 20 00 | 00 01 7e 9e 81 01 14 9e |...... .|..~.....|
|00000060| 81 01 14 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 55 22 00 00 |........|....U"..|
|00000080| 23 0d 23 20 20 20 20 20 | 20 20 20 20 20 53 20 49 |#.# | S I|
|00000090| 20 45 20 56 20 45 20 20 | 20 4f 20 46 20 20 20 45 | E V E | O F E|
|000000a0| 20 52 20 41 20 54 20 4f | 20 53 20 54 20 48 20 45 | R A T O| S T H E|
|000000b0| 20 4e 20 45 20 53 0d 23 | 0d 0d 23 20 20 54 68 69 | N E S.#|..# Thi|
|000000c0| 73 20 70 72 6f 67 72 61 | 6d 20 69 6c 6c 75 73 74 |s progra|m illust|
|000000d0| 72 61 74 65 73 20 74 68 | 65 20 75 73 65 20 6f 66 |rates th|e use of|
|000000e0| 20 73 65 74 73 20 69 6e | 20 69 6d 70 6c 65 6d 65 | sets in| impleme|
|000000f0| 6e 74 69 6e 67 20 74 68 | 65 0d 23 20 20 63 6c 61 |nting th|e.# cla|
|00000100| 73 73 69 63 61 6c 20 73 | 69 65 76 65 20 61 6c 67 |ssical s|ieve alg|
|00000110| 6f 72 69 74 68 6d 20 66 | 6f 72 20 63 6f 6d 70 75 |orithm f|or compu|
|00000120| 74 69 6e 67 20 70 72 69 | 6d 65 20 6e 75 6d 62 65 |ting pri|me numbe|
|00000130| 72 73 2e 0d 0d 70 72 6f | 63 65 64 75 72 65 20 6d |rs...pro|cedure m|
|00000140| 61 69 6e 28 61 29 0d 20 | 20 20 6c 6f 63 61 6c 20 |ain(a). | local |
|00000150| 6c 69 6d 69 74 2c 20 73 | 2c 20 69 0d 20 20 20 6c |limit, s|, i. l|
|00000160| 69 6d 69 74 20 3a 3d 20 | 69 6e 74 65 67 65 72 28 |imit := |integer(|
|00000170| 61 5b 31 5d 29 20 7c 31 | 30 30 0d 20 20 20 73 20 |a[1]) |1|00. s |
|00000180| 3a 3d 20 73 65 74 28 29 | 0d 20 20 20 65 76 65 72 |:= set()|. ever|
|00000190| 79 20 69 6e 73 65 72 74 | 28 73 2c 31 20 74 6f 20 |y insert|(s,1 to |
|000001a0| 6c 69 6d 69 74 29 0d 20 | 20 20 65 76 65 72 79 20 |limit). | every |
|000001b0| 6d 65 6d 62 65 72 28 73 | 2c 69 20 3a 3d 20 32 20 |member(s|,i := 2 |
|000001c0| 74 6f 20 6c 69 6d 69 74 | 29 20 64 6f 0d 20 20 20 |to limit|) do. |
|000001d0| 20 20 20 65 76 65 72 79 | 20 64 65 6c 65 74 65 28 | every| delete(|
|000001e0| 73 2c 69 20 2b 20 69 20 | 74 6f 20 6c 69 6d 69 74 |s,i + i |to limit|
|000001f0| 20 62 79 20 69 29 0d 20 | 20 20 70 72 69 6d 65 73 | by i). | primes|
|00000200| 20 3a 3d 20 73 6f 72 74 | 28 73 29 0d 20 20 20 77 | := sort|(s). w|
|00000210| 72 69 74 65 28 22 54 68 | 65 72 65 20 61 72 65 20 |rite("Th|ere are |
|00000220| 22 2c 2a 70 72 69 6d 65 | 73 2c 22 20 70 72 69 6d |",*prime|s," prim|
|00000230| 65 73 20 69 6e 20 74 68 | 65 20 66 69 72 73 74 20 |es in th|e first |
|00000240| 22 2c 6c 69 6d 69 74 2c | 22 20 69 6e 74 65 67 65 |",limit,|" intege|
|00000250| 72 73 2e 22 29 0d 20 20 | 20 77 72 69 74 65 28 22 |rs."). | write("|
|00000260| 54 68 65 20 70 72 69 6d | 65 73 20 61 72 65 3a 22 |The prim|es are:"|
|00000270| 29 0d 20 20 20 65 76 65 | 72 79 20 77 72 69 74 65 |). eve|ry write|
|00000280| 28 72 69 67 68 74 28 21 | 70 72 69 6d 65 73 2c 2a |(right(!|primes,*|
|00000290| 6c 69 6d 69 74 20 2b 20 | 31 29 29 0d 65 6e 64 0d |limit + |1)).end.|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000310| 05 52 a3 4a 00 00 04 00 | 00 00 10 00 00 0e 00 00 |.R.J....|........|
|00000320| 1c e4 14 2c 02 48 44 aa | 20 34 30 00 00 00 00 00 |...,.HD.| 40.....|
|00000330| 09 73 69 65 76 65 2e 69 | 63 6e 02 00 00 00 54 45 |.sieve.i|cn....TE|
|00000340| 58 54 4d 50 53 20 01 00 | 00 40 00 80 01 05 00 00 |XTMPS ..|.@......|
|00000350| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 40 00 80 |..TEXTMP|S ...@..|
|00000360| 01 05 5d cd a4 ea 00 00 | 00 00 00 00 00 00 00 00 |..].....|........|
|00000370| 00 00 9c 3a d6 76 00 00 | 02 20 00 00 01 7e 00 00 |...:.v..|. ...~..|
|00000380| 00 00 00 0a 34 00 00 00 | 02 8d 00 00 00 00 00 00 |....4...|........|
|00000390| 00 00 00 0a 34 00 02 8d | 02 8d 00 00 00 00 00 00 |....4...|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 53 0d 23 |...H..Mo|naco.S.#|
|00000410| 0d 0d 23 20 20 54 68 69 | 73 20 70 72 6f 67 72 61 |..# Thi|s progra|
|00000420| 6d 20 69 6c 6c 75 00 06 | 00 04 00 3c 00 24 01 dd |m illu..|...<.$..|
|00000430| 02 7d 00 3c 00 24 01 dd | 02 7d 9e 80 c8 d4 00 00 |.}.<.$..|.}......|
|00000440| 00 f7 00 00 00 f7 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00000450| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 02 1f 20 |...L...L|...2... |
|00000460| 03 ae 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000470| 00 0a 03 ed ff ff 00 00 | 00 00 00 02 fc ac 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+